package com.zhangst.bbs.page;

import java.util.List;

public class DataList {
	private Long total = 0L;
	private List rows;
	private int page;
	private int num;
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public List getRows() {
		return rows;
	}
	public void setRows(List rows) {
		this.rows = rows;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	
	
	public boolean hasNext(){
		return page*num<total;
	}
	
	public boolean hasLast(){
		return page>1;
	}
	
	
}
